<template>
  <nav>
    <!-- <router-link to="/">大屏界面</router-link> | -->


    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
      <el-menu-item index="1"><router-link to="/" style="text-decoration:none;">可视化大屏</router-link></el-menu-item>
      <el-menu-item index="2" ><router-link to="/managestudent" style="text-decoration:none;">管理界面</router-link></el-menu-item>
  </el-menu>
  </nav>
  <router-view/>
</template>

<script>
  export default {
    data() {
      return {
        activeIndex: '1',
        activeIndex2: '1'
      };
    },
    methods: {
      handleSelect(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>
